package com.mapper;

import com.pojo.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {

    void user_register(User user);

    User check_mailbox(String mailbox);

    User login_check(User user);

    User get_user_info(User user);

    User get_user_success(String email);

    void update_user_info(User user);

    List<FollowItem> get_following_list(String userid);

    void cancel_concern(@Param("userid") String userid, @Param("following_id") String following_id);

    void user_concern(@Param("userid") String userid, @Param("following_id") String following_id);

    List<FansItem> get_fans_list(String userid);

    List<SearchUser> search_user(@Param("page_number") int page_number,@Param("userid") String userid,@Param("search_content") String search_content);

    void logout_account(String userid);

    void del_concern(String userid);

    User judge_pwd(@Param("pwd") String pwd,@Param("email") String email);

    Author get_author_info(@Param("author_id") String author_id,@Param("self_id") String self_id);

    int manager_login(@Param("username") String username,@Param("pwd") String pwd);

    int get_user_count();

    List<User> get_all_user(int start);

    String test();

}
